package com.house.user.feign;

import com.house.common.to.UserTo;
import com.house.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("auth")
@RequestMapping("auth/power")
public interface AuthFeignService {

    @PostMapping("/createToken")
    public R createToken(@RequestBody UserTo user);

}
